package thesis.database;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.HashMap;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Factory {
	private static ApplicationContext context;

	private Factory() {
		
	}
	
	static{
		context = new ClassPathXmlApplicationContext("applicationContext.xml");
	}

	public static Object createJDBCTemplate(String name) {
		Object object = context.getBean(name);
		return object;
	}

}
